카탈로그
카탈로그 항목 수정
PATCH
/
api
/
manager
/
catalogs
/
{catalog_id}
카탈로그 항목 수정
curl --request PATCH \
--url https://your_a2_service/api/manager/catalogs/{catalog_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"brand": "brand1",
"ext": {
"price": 25000
},
"id": "1001",
"title": "product1"
},
"schema": "creative.catalog",
"source": "manual",
"status": "active"
}
'import requests
url = "https://your_a2_service/api/manager/catalogs/{catalog_id}"
payload = {
"metadata": {
"brand": "brand1",
"ext": { "price": 25000 },
"id": "1001",
"title": "product1"
},
"schema": "creative.catalog",
"source": "manual",
"status": "active"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {brand: 'brand1', ext: {price: 25000}, id: '1001', title: 'product1'},
schema: 'creative.catalog',
source: 'manual',
status: 'active'
})
};
fetch('https://your_a2_service/api/manager/catalogs/{catalog_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/api/manager/catalogs/{catalog_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'metadata' => [
'brand' => 'brand1',
'ext' => [
'price' => 25000
],
'id' => '1001',
'title' => 'product1'
],
'schema' => 'creative.catalog',
'source' => 'manual',
'status' => 'active'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/manager/catalogs/{catalog_id}"
payload := strings.NewReader("{\n \"metadata\": {\n \"brand\": \"brand1\",\n \"ext\": {\n \"price\": 25000\n },\n \"id\": \"1001\",\n \"title\": \"product1\"\n },\n \"schema\": \"creative.catalog\",\n \"source\": \"manual\",\n \"status\": \"active\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://your_a2_service/api/manager/catalogs/{catalog_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {\n \"brand\": \"brand1\",\n \"ext\": {\n \"price\": 25000\n },\n \"id\": \"1001\",\n \"title\": \"product1\"\n },\n \"schema\": \"creative.catalog\",\n \"source\": \"manual\",\n \"status\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/catalogs/{catalog_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata\": {\n \"brand\": \"brand1\",\n \"ext\": {\n \"price\": 25000\n },\n \"id\": \"1001\",\n \"title\": \"product1\"\n },\n \"schema\": \"creative.catalog\",\n \"source\": \"manual\",\n \"status\": \"active\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2026-10-20T00:00:00Z",
"id": "1001",
"metadata": {
"brand": "brand1",
"ext": {
"price": 25000
},
"id": "1001",
"title": "product1"
},
"schema": "creative.catalog",
"source": "manual",
"status": "active",
"updated_at": "2026-10-20T00:00:00Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}본문
application/json
PATCH 시 모든 필드는 선택입니다.
metadata는 병합이 아니라 전체 교체이며 schema가 지정한 형태를 만족해야 합니다. 따라서 일부 필드만 담은 metadata는 422로 거부됩니다.
응답
성공 응답
카탈로그 항목 응답 스키마.
이 페이지가 도움이 되었나요?
⌘I
카탈로그 항목 수정
curl --request PATCH \
--url https://your_a2_service/api/manager/catalogs/{catalog_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"brand": "brand1",
"ext": {
"price": 25000
},
"id": "1001",
"title": "product1"
},
"schema": "creative.catalog",
"source": "manual",
"status": "active"
}
'import requests
url = "https://your_a2_service/api/manager/catalogs/{catalog_id}"
payload = {
"metadata": {
"brand": "brand1",
"ext": { "price": 25000 },
"id": "1001",
"title": "product1"
},
"schema": "creative.catalog",
"source": "manual",
"status": "active"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {brand: 'brand1', ext: {price: 25000}, id: '1001', title: 'product1'},
schema: 'creative.catalog',
source: 'manual',
status: 'active'
})
};
fetch('https://your_a2_service/api/manager/catalogs/{catalog_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/api/manager/catalogs/{catalog_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'metadata' => [
'brand' => 'brand1',
'ext' => [
'price' => 25000
],
'id' => '1001',
'title' => 'product1'
],
'schema' => 'creative.catalog',
'source' => 'manual',
'status' => 'active'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/manager/catalogs/{catalog_id}"
payload := strings.NewReader("{\n \"metadata\": {\n \"brand\": \"brand1\",\n \"ext\": {\n \"price\": 25000\n },\n \"id\": \"1001\",\n \"title\": \"product1\"\n },\n \"schema\": \"creative.catalog\",\n \"source\": \"manual\",\n \"status\": \"active\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://your_a2_service/api/manager/catalogs/{catalog_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {\n \"brand\": \"brand1\",\n \"ext\": {\n \"price\": 25000\n },\n \"id\": \"1001\",\n \"title\": \"product1\"\n },\n \"schema\": \"creative.catalog\",\n \"source\": \"manual\",\n \"status\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/catalogs/{catalog_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata\": {\n \"brand\": \"brand1\",\n \"ext\": {\n \"price\": 25000\n },\n \"id\": \"1001\",\n \"title\": \"product1\"\n },\n \"schema\": \"creative.catalog\",\n \"source\": \"manual\",\n \"status\": \"active\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2026-10-20T00:00:00Z",
"id": "1001",
"metadata": {
"brand": "brand1",
"ext": {
"price": 25000
},
"id": "1001",
"title": "product1"
},
"schema": "creative.catalog",
"source": "manual",
"status": "active",
"updated_at": "2026-10-20T00:00:00Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}